package java50practice;

public class java27 {
	public static void main(String[] args) {
		for(int i=1;i<=100;i++){
			for(int j=2;j<i;j++){
				if(i%j==0){
					break;
				}else if(j==i-1){
					System.out.println(i);
				}
			}
		}
	}
}
